What is how did balaam die?

According to the Bible, Balaam died during the conquest of the Israelites in the land of Canaan. In Numbers 31:8, it is mentioned that Balaam was one among the Midianite leaders who were defeated by the Israelites. During the battle, Balaam was slain with a sword. The book of Joshua also mentions the death of Balaam, stating that he was killed along with the other leaders of the Midianites by the Israelites (Joshua 13:22-23). However, the exact details of his death are not mentioned in the Bible, and there is no historical evidence available to confirm the circumstances of his death.